import java.util.Scanner;

public class 小美的因子查询 {
    //https://www.nowcoder.com/practice/1870e68256794c6aa727c8bb71fd9737?tpId=376&tqId=10994372&ru=/exam/oj&qru=/ta/15-days-help/question-ranking&sourceUrl=%2Fexam%2Foj%3Fpage%3D1%26tab%3D%25E7%25AE%2597%25E6%25B3%2595%25E9%259D%25A2%25E8%25AF%2595%26topicId%3D376
    //也是简单的模拟, 加上了一个位运算来判断是否是2的倍数
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int q = in.nextInt();
        while(q-- > 0){
            int n = in.nextInt();
            if((n & 1) == 1){
                System.out.println("NO");
            }else{
                System.out.println("YES");
            }
        }
    }
}
